< Prev(J) / Next(K) > / View :

Filename: /text/scalc/01/04060110.xhp

(bookmark: bm_id3145389)
text in cells; functions
functions; text functions
Function Wizard;text

セル内のテキスト; 関数
関数; テキスト関数
関数ウィザード; テキスト

Text Functions
テキスト関数(hd_id3145389.1)

(variable: texttext)This section contains descriptions of the Text functions.
(variable: texttext)このセクションには、テキスト 関数の説明が含まれています。(par_id3152986.2)

(variable: wie)To access this command...(variable: wie)この機能の見つけ方

(embed text/scalc/00/00000404.xhp#eikatext : linkinfo)

Insert - Function - Category Text
挿入 → 関数 → 分類項目 文字列(par_id3156016.25)

(/embed text/scalc/00/00000404.xhp#eikatext)


(section: arabic) (bookmark: bm_id3149384)
ARABIC function

ARABIC 関数
(bookmark: bm_id3145359)

ARABIC
ARABIC(hd_id3149384.239)

Calculates the value of a Roman number. The value range must be between 0 and 3999.
ローマ数字を表す文字列をアラビア数字に変換します。0 から 3999 までの数が有効です。(par_id3153558.240)

Syntax
構文(hd_id3153011.241)

ARABIC("Text")
ARABIC("テキスト")(par_id3155523.242)

Text is the text that represents a Roman number.
文字列 はローマ数字を表す文字列です。(par_id3151193.243)

Example
(hd_id3155758.244)

=ARABIC("MXIV") returns 1014
=ARABIC("MXIV") は、1014 を返します。(par_id3154621.245)

=ARABIC("MMII") returns 2002
=ARABIC("MMII") は、2002 を返します。(par_id3147553.246)

(/section: arabic) (section: asc) (bookmark: bm_id8796349)
ASC function

ASC 関数
(bookmark: bm_id3187353)

ASC
ASC(hd_id7723929.)

The ASC function converts full-width to half-width ASCII and katakana characters. Returns a text string.
ASC 関数は、ASCII およびカタカナ文字を全角から半角に変換します。テキスト文字列を返します。(par_id8455153.)

See http://wiki.services.openoffice.org/mwiki/index.php?title=Calc/Features/JIS_and_ASC_functions for a conversion table.
変換テーブルについては、http://wiki.services.openoffice.org/mwiki/index.php?title=Calc/Features/JIS_and_ASC_functions を参照してください。(par_id9912411.)

Syntax
構文(hd_id9204992.)

ASC("Text")
ASC("テキスト")(par_id1993774.)

Text is the text that contains characters to be converted.
テキスト は、変換される文字を含むテキストです。(par_id2949919.)

See also JIS function.
JIS 関数も参照。(par_id2355113.)

(/section: asc) (section: bahttext) (bookmark: bm_id9323709)
BAHTTEXT function

BAHTTEXT 関数
(bookmark: bm_id744346)

BAHTTEXT
BAHTTEXT(hd_id6695455.)

Converts a number to Thai text, including the Thai currency names.
数値を、タイの通貨名を含むタイ語のテキストに変換します。(par_id354014.)

Syntax
構文(hd_id9942014.)

BAHTTEXT(Number)
BAHTTEXT(数値)(par_id8780785.)

Number is any number. "Baht" is appended to the integral part of the number, and "Satang" is appended to the decimal part of the number.
数値 は任意の数字です。数値の整数部に「バーツ」が追加され、数値の小数部に「サタン」が追加されます。(par_id1539353.)

Example
(hd_id9694814.)

=BAHTTEXT(12.65) returns a string in Thai characters with the meaning of "Twelve Baht and sixty five Satang".
=BAHTTEXT(12.65) は、「12 バーツ 65 サタン」を意味するタイ文字の文字列を返します。(par_id3289284.)

(/section: bahttext) (section: base) (bookmark: bm_id3153072)
BASE function

BASE 関数
(bookmark: bm_id3150957)

BASE
BASE(hd_id3153072.213)

Converts a positive integer to a specified base into a text from the numbering system. The digits 0-9 and the letters A-Z are used.
指定の基数で正の整数を記数法のテキストに変換します。0~9 の数字と A~Z のアルファベット文字が使用されます。(par_id3153289.214)

Syntax
構文(hd_id3146097.215)

BASE(Number; Radix; [MinimumLength])
BASE(数値; 基数; [最小長さ])(par_id3155743.216)

Number is the positive integer to be converted.
数値 は、変換される正の整数です。(par_id3151339.217)

Radix indicates the base of the number system. It may be any positive integer between 2 and 36.
Radix は、記数法の底を示します。これは、2 から 36 の任意の正の整数の場合があります。(par_id3159262.218)

MinimumLength (optional) determines the minimum length of the character sequence that has been created. If the text is shorter than the indicated minimum length, zeros are added to the left of the string.
最小長さ (オプション) は、作成された文字列の最小長さを決定します。指定した最小長さより短い結果には、左にゼロが追加されます。(par_id3148746.219)

Example
(hd_id3146323.220)

(bookmark: bm_id3156399)
decimal system; converting to

10 進法; 変換する

=BASE(17;10;4) returns 0017 in the decimal system.
=BASE(17;10;4) は、10 進数の 0017 を返します。(par_id3156399.221)

(bookmark: bm_id3157871)
binary system; converting to

2 進法; 変換する

=BASE(17;2) returns 10001 in the binary system.
=BASE(17;2) は、2 進数の 10001 を返します。(par_id3157871.222)

(bookmark: bm_id3145226)
hexadecimal system; converting to

16 進法; 変換する

=BASE(255;16;4) returns 00FF in the hexadecimal system.
=BASE(255;16;4) は、16 進数の 00FF を返します。(par_id3145226.223)

(/section: base) (section: char) (bookmark: bm_id3149321)
CHAR function

CHAR 関数
(bookmark: bm_id3159128)

CHAR
CHAR(hd_id3149321.201)

Converts a number into a character according to the current code table. The number can be a two-digit or three-digit integer number.
現在のロケールの文字コード表に従って、数値を文字に変換します。数値は 2 桁または 3 桁の整数の数値です。(par_id3149150.202)

(embed text/scalc/00/00000004.xhp#codes : linkinfo)

Codes greater than 127 may depend on your system's character mapping (for example iso-8859-1, iso-8859-2, Windows-1252, Windows-1250), and hence may not be portable.
127 より大きいコードは、iso-8859-1、iso-8859-2、Windows-1252、Windows-1250 など、システムの文字マッピングに依存する可能性があり、移植性がないことがあります。(par_id9751884.)

(/embed text/scalc/00/00000004.xhp#codes)

Syntax
構文(hd_id3149945.203)

CHAR(Number)
CHAR(数値)(par_id3145634.204)

Number is a number between 1 and 255 representing the code value for the character.
数値 は、文字のコード値を表す 1 から 255 の数値です。(par_id3155906.205)

Example
(hd_id3152982.207)

=CHAR(100) returns the character d.
=CHAR(100) は、文字 d を返します。(par_id3149890.208)

="abc" & CHAR(10) & "def" inserts a newline character into the string.
="abc" & CHAR(10) & "def" 文字列に改行文字を挿入します。(par_id0907200910283297.)

(/section: char) (section: clean) (bookmark: bm_id3149009)
CLEAN function

CLEAN 関数
(bookmark: bm_id3148729)

CLEAN
CLEAN(hd_id3149009.132)

All non-printing characters are removed from the string.
文字列から印刷されない文字を削除します。(par_id3150482.133)

Syntax
構文(hd_id3146880.134)

CLEAN("Text")
CLEAN("テキスト")(par_id3147472.135)

Text refers to the text from which to remove all non-printable characters.
テキスト は、印刷できないすべての文字を削除するテキストを指します。(par_id3150695.136)

(/section: clean) (section: code) (bookmark: bm_id3155498)
CODE function

CODE 関数
(bookmark: bm_id3159084)

CODE
CODE(hd_id3155498.3)

Returns a numeric code for the first character in a text string.
テキストや文字列の先頭文字のコードを返します。(par_id3152770.4)

Syntax
構文(hd_id3155830.5)

CODE("Text")
CODE("テキスト")(par_id3149188.6)

Text is the text for which the code of the first character is to be found.
テキスト は、先頭文字のコード番号を調べるテキストです。(par_id3154383.7)

(embed text/scalc/00/00000004.xhp#codes : linkinfo)

Codes greater than 127 may depend on your system's character mapping (for example iso-8859-1, iso-8859-2, Windows-1252, Windows-1250), and hence may not be portable.
127 より大きいコードは、iso-8859-1、iso-8859-2、Windows-1252、Windows-1250 など、システムの文字マッピングに依存する可能性があり、移植性がないことがあります。(par_id9751884.)

(/embed text/scalc/00/00000004.xhp#codes)

Example
(hd_id3154394.8)

=CODE("Hieronymus") returns 72, =CODE("hieroglyphic") returns 104.
=CODE("Hieronymus") は 72 を返します。=CODE("hieroglyphic") は 104 を返します。(par_id3159209.9)

Note Icon 注マーク The code used here does not refer to ASCII, but to the code table currently loaded.
ここで使用されるコードは ASCII コードではなく、現在使用しているコード表のコードです。(par_id3150280.211)

(/section: code) (section: concatenate) (bookmark: bm_id3149688)
CONCATENATE function

CONCATENATE 関数
(bookmark: bm_id3153084)

CONCATENATE
CONCATENATE(hd_id3149688.167)

Combines several text strings into one string.
複数の文字列を 1 つのテキスト文字列に結合します。(par_id3154524.168)

Syntax
構文(hd_id3149542.169)

CONCATENATE("Text1"; ...; "Text30")
CONCATENATE("テキスト 1"; ...; "テキスト 30")(par_id3155954.170)

Text 1; Text 2; ... represent up to 30 text passages which are to be combined into one string.
テキスト 1; テキスト 2; ... は、1 文字列に組み合わされる最高 30 個のテキストを表します。(par_id3146847.171)

Example
(hd_id3153110.172)

=CONCATENATE("Good ";"Morning ";"Mrs. ";"Doe") returns: Good Morning Mrs. Doe.
=CONCATENATE("Good ";"Morning ";"Mrs. ";"Doe") は、Good Morning Mrs. Doe を返します。(par_id3150008.173)

(/section: concatenate) (section: decimal) (bookmark: bm_id3145166)
DECIMAL function

DECIMAL 関数
(bookmark: bm_id3150338)

DECIMAL
DECIMAL(hd_id3145166.225)

Converts text with characters from a number system to a positive integer in the base radix given. The radix must be in the range 2 to 36. Spaces and tabs are ignored. The Text field is not case-sensitive.
number system の文字を含むテキストを、指定された基数の正の整数に変換します。 基数は 2 から 36 の範囲とします。スペースとタブは無視されます。テキスト フィールドでは、大文字と小文字は区別されません。(par_id3156361.226)

If the radix is 16, a leading x or X or 0x or 0X, and an appended h or H, is disregarded. If the radix is 2, an appended b or B is disregarded. Other characters that do not belong to the number system generate an error.
基数が 16 の場合、先頭に付いている x、X、0x、または 0X、および末尾に付いている h または H は無視されます。基数が 2 の場合、末尾に付いている b または B は無視されます。記数法に属さないその他の文字はエラーになります。(par_id3157994.227)

Syntax
構文(hd_id3150014.228)

DECIMAL("Text"; Radix)
DECIMAL("テキスト"; 基数)(par_id3154328.229)

Text is the text to be converted. To differentiate between a hexadecimal number, such as A1 and the reference to cell A1, you must place the number in quotation marks, for example, "A1" or "FACE".
テキスト は、変換されるテキストです。A1 などの 16 進数とセル A1 を区別するために、たとえば "A1" または "FACE" のように数字を引用符で囲んでください。(par_id3150128.230)

Radix indicates the base of the number system. It may be any positive integer between 2 and 36.
Radix は、記数法の底を示します。これは、2 から 36 の正の整数のいずれかをとり得ます。(par_id3145241.231)

Example
(hd_id3156062.232)

=DECIMAL("17";10) returns 17.
=DECIMAL("17";10) は、17 を返します。(par_id3145355.233)

=DECIMAL("FACE";16) returns 64206.
=DECIMAL("FACE";16) は、64206 を返します。(par_id3155622.234)

=DECIMAL("0101";2) returns 5.
=DECIMAL("0101";2) は、5 を返します。(par_id3151015.235)

(/section: decimal) (section: dollar) (bookmark: bm_id3148402)
DOLLAR function

DOLLAR 関数
(bookmark: bm_id3149532)

DOLLAR
DOLLAR(hd_id3148402.11)

Converts a number to an amount in the currency format, rounded to a specified decimal place. In the Value field enter the number to be converted to currency. Optionally, you may enter the number of decimal places in the Decimals field. If no value is specified, all numbers in currency format will be displayed with two decimal places.
指定された小数点以下の桁数に丸められた通貨形式の金額に数値を変換します。通貨に変換する数字を「値」フィールドに入力します。オプションで「小数位」フィールドに小数点以下の桁数を入力することもできます。値が指定されていない場合、通貨形式のすべての数字は、小数位 2 桁で表示されます。(par_id3153049.12)

You set the currency format in your system settings.
自分のシステム設定に通貨書式を設定します。(par_id3151280.263)

Syntax
構文(hd_id3150569.13)

DOLLAR(Value; Decimals)
DOLLAR(値; 小数位)(par_id3154188.14)

Value is a number, a reference to a cell containing a number, or a formula which returns a number.
は、数値、数値を含むセルへの参照、または数値を返す数式です。(par_id3145299.15)

Decimals is the optional number of decimal places.
小数 は、小数点以下の桁数 (オプション) です。(par_id3145629.16)

Example
(hd_id3149030.17)

=DOLLAR(255) returns $255.00.
=DOLLAR(255) は、$255.00 を返します。(par_id3153546.18)

=DOLLAR(367.456;2) returns $367.46. Use the decimal separator that corresponds to the current locale setting.
=DOLLAR(367.456;2) は、$367.46 を返します。言語設定 に対応する小数点を使用してください。(par_id3154635.19)

(/section: dollar) (section: exact) (bookmark: bm_id3150685)
EXACT function

EXACT 関数
(bookmark: bm_id3155081)

EXACT
EXACT(hd_id3150685.78)

Compares two text strings and returns TRUE if they are identical. This function is case-sensitive.
2 つのテキスト文字列を比較して、同じであれば TRUE を返します。この関数は、大文字と小文字を区別します。(par_id3158413.79)

Syntax
構文(hd_id3152817.80)

EXACT("Text1"; "Text2")
EXACT("テキスト 1"; "テキスト 2")(par_id3148594.81)

Text1 refers to the first text to compare.
テキスト 1 は、比較する最初のテキストを指します。(par_id3153224.82)

Text2 is the second text to compare.
テキスト 2 は、比較する 2 番目のテキストです。(par_id3148637.83)

Example
(hd_id3149777.84)

=EXACT("microsystems";"Microsystems") returns FALSE.
=EXACT("microsystems";"Microsystems") は、FALSE を返します。(par_id3156263.85)

(/section: exact) (section: find) (bookmark: bm_id3152589)
FIND function

FIND 関数
(bookmark: bm_id3147482)

FIND
FIND(hd_id3152589.44)

Looks for a string of text within another string. You can also define where to begin the search. The search term can be a number or any string of characters. The search is case-sensitive.
文字列から特定のテキスト文字列を検索します。どこから検索を開始するかも指定できます。検索する文字列は数字でも文字でもかまいません。検索は大文字と小文字を区別します。(par_id3146149.45)

Syntax
構文(hd_id3083284.46)

FIND("FindText"; "Text"; Position)
FIND("検索テキスト"; "テキスト"; 位置)(par_id3083452.47)

FindText refers to the text to be found.
検索テキスト は、検索されるテキストを指します。(par_id3150608.48)

Text is the text where the search takes place.
テキスト は、検索を実行するテキストです。(par_id3152374.49)

Position (optional) is the position in the text from which the search starts.
位置 (オプション) は、検索を開始するテキスト内の位置です。(par_id3152475.50)

Example
(hd_id3154812.51)

=FIND(76;998877665544) returns 6.
=FIND(76;998877665544) は、6 を返します。(par_id3156375.52)

(/section: find) (section: fixed) (bookmark: bm_id3149268)
FIXED function

FIXED 関数
(bookmark: bm_id3149450)

FIXED
FIXED(hd_id3149268.34)

Returns a number as text with a specified number of decimal places and optional thousands separators.
指定された小数位を持ち、任意で千単位の桁区切りが付いたテキストとして、数を返します。(par_id3155833.35)

Syntax
構文(hd_id3152470.36)

FIXED(Number; Decimals; NoThousandsSeparators)
FIXED(数値; 小数; 桁区切りの数)(par_id3147567.37)

Number refers to the number to be formatted.
数値 は、書式設定される数値です。(par_id3151272.38)

Decimals refers to the number of decimal places to be displayed.
小数位 は、表示する小数点以下の桁数です。(par_id3156322.39)

NoThousandsSeparators (optional) determines whether the thousands separator is used. If the parameter is a number not equal to 0, the thousands separator is suppressed. If the parameter is equal to 0 or if it is missing altogether, the thousands separators of your current locale setting are displayed.
桁区切りの数 (オプション) は、桁区切りを使用するかどうかを決定します。パラメータが 0 以外の数値の場合、桁区切りは無効になります。パラメータが 0 に等しいか、まったくない場合、使用している 言語設定 の桁区切りが表示されます。(par_id3150877.40)

Example
(hd_id3149040.41)

=FIXED(1234567.89;3) returns 1,234,567.890 as a text string.
=FIXED(1234567.89;3) は、テキスト文字列として 1,234,567.890 を返します。(par_id3145208.42)

=FIXED(1234567.89;3;1) returns 1234567.890 as a text string.
=FIXED(1234567.89;3;1) は、テキスト文字列として 1234567.890 を返します。(par_id5282143.)

(/section: fixed) (section: jis) (bookmark: bm_id7319864)
JIS function

JIS 関数
(bookmark: bm_id3818475)

JIS
JIS(hd_id3666188.)

The JIS function converts half-width to full-width ASCII and katakana characters. Returns a text string.
JIS 関数は、ASCII およびカタカナ文字を半角から全角に変換します。テキスト文字列を返します。(par_id964384.)

See http://wiki.services.openoffice.org/mwiki/index.php?title=Calc/Features/JIS_and_ASC_functions for a conversion table.
変換テーブルについては、http://wiki.services.openoffice.org/mwiki/index.php?title=Calc/Features/JIS_and_ASC_functions を参照してください。(par_id1551561.)

Syntax
構文(hd_id2212897.)

JIS("Text")
JIS("テキスト")(par_id2504654.)

Text is the text that contains characters to be converted.
テキスト は、変換される文字を含むテキストです。(par_id5292519.)

See also ASC function.
ASC 関数も参照。(par_id3984496.)

(/section: jis) (section: left) (bookmark: bm_id3147083)
LEFT function

LEFT 関数
(bookmark: bm_id3154645)

LEFT
LEFT(hd_id3147083.95)

Returns the first character or characters of a text.
テキストの先頭の文字 (複数の文字も可) を返します。(par_id3153622.96)

Syntax
構文(hd_id3156116.97)

LEFT("Text"; Number)
LEFT("テキスト"; 数値)(par_id3146786.98)

Text is the text where the initial partial words are to be determined.
テキスト は、最初の部分ワードが決定されるテキストです。(par_id3147274.99)

Number (optional) specifies the number of characters for the start text. If this parameter is not defined, one character is returned.
文字数 (オプション) は、テキストの左 (先頭) から取り出す文字数です。このパラメータが指定されていない場合、テキストの一番左 (先頭) の文字だけを返します。(par_id3153152.100)

Example
(hd_id3150260.101)

=LEFT("output";3) returns “out”.
=LEFT("output";3) は、「out」を返します。(par_id3149141.102)

(/section: left) (section: len) (bookmark: bm_id3156110)
LEN function

LEN 関数
(bookmark: bm_id3154050)

LEN
LEN(hd_id3156110.104)

Returns the length of a string including spaces.
この関数は、文字列の長さを返します。スペースも文字とみなされます。(par_id3150147.105)

Syntax
構文(hd_id3155108.106)

LEN("Text")
LEN("テキスト")(par_id3154063.107)

Text is the text whose length is to be determined.
テキスト は、その長さが決定されるテキストです。(par_id3146894.108)

Example
(hd_id3153884.109)

=LEN("Good Afternoon") returns 14.
=LEN("Good Afternoon") は、14 を返します。(par_id3156008.110)

=LEN(12345.67) returns 8.
=LEN(12345.67) は、8 を返します。(par_id3154300.111)

(/section: len) (section: lower) (bookmark: bm_id3153983)
LOWER function

LOWER 関数
(bookmark: bm_id3151173)

LOWER
LOWER(hd_id3153983.87)

Converts all uppercase letters in a text string to lowercase.
文字列のアルファベット文字を、すべて小文字に変換します。(par_id3152791.88)

Syntax
構文(hd_id3155902.89)

LOWER("Text")
LOWER("テキスト")(par_id3150121.90)

Text refers to the text to be converted.
テキスト は、変換されるテキストを指します。(par_id3153910.91)

Example
(hd_id3159343.92)

=LOWER("Sun") returns sun.
=LOWER("Sun") は、sun を返します。(par_id3155329.93)

(/section: lower) (section: mid) (bookmark: bm_id3154589)
MID function

MID 関数
(bookmark: bm_id3155392)

MID
MID(hd_id3154589.148)

Returns a text string of a text. The parameters specify the starting position and the number of characters.
テキストの文字列を返します。パラメータは、開始位置と文字数を返します。(par_id3154938.149)

Syntax
構文(hd_id3148829.150)

MID("Text"; Start; Number)
MID("テキスト"; 開始; 数値)(par_id3150526.151)

Text is the text containing the characters to extract.
テキスト は、抽出する文字を含むテキストです。(par_id3148820.152)

Start is the position of the first character in the text to extract.
開始 は、抽出する文字の最初の文字の位置です。(par_id3150774.153)

Number specifies the number of characters in the part of the text.
数値 は、テキストの一部の文字数を指定します。(par_id3153063.154)

Example
(hd_id3150509.155)

=MID("office";2;2) returns ff.
=MID("office";2;2) は、ff を返します。(par_id3158407.156)

(/section: mid) (section: proper) (bookmark: bm_id3159143)
PROPER function

PROPER 関数
(bookmark: bm_id3154897)

PROPER
PROPER(hd_id3159143.70)

Capitalizes the first letter in all words of a text string.
テキスト文字列内にあるすべての単語の最初の文字を大文字にします。(par_id3149768.71)

Syntax
構文(hd_id3153573.72)

PROPER("Text")
PROPER("テキスト")(par_id3154260.73)

Text refers to the text to be converted.
テキスト は、変換されるテキストを指します。(par_id3147509.74)

Example
(hd_id3147529.75)

=PROPER("open office") returns Open Office.
=PROPER("open office") は、Open Office を返します。(par_id3155364.76)

(/section: proper) (section: replace) (bookmark: bm_id3149171)
REPLACE function

REPLACE 関数
(bookmark: bm_id3149990)

REPLACE
REPLACE(hd_id3149171.22)

Replaces part of a text string with a different text string. This function can be used to replace both characters and numbers (which are automatically converted to text). The result of the function is always displayed as text. If you intend to perform further calculations with a number which has been replaced by text, you will need to convert it back to a number using the VALUE function.
この関数は、文字列の一部を、別の文字列に置き換えます。文字列または数値の一部分を置換します。結果は常に文字列で返るため、数値は自動的に文字列としての数に変換されます。置換された数値を計算に使うには、戻り値を VALUE 関数で数値に変換する必要があります。(par_id3148925.23)

Any text containing numbers must be enclosed in quotation marks if you do not want it to be interpreted as a number and automatically converted to text.
数値として認識されたくない (つまり、自動的にテキストに変換してもかまわない) 数字を含むテキストは引用符で囲みます。(par_id3158426.24)

Syntax
構文(hd_id3149159.25)

REPLACE("Text"; Position; Length; "NewText")
REPLACE("テキスト"; 位置; 長さ; "新しいテキスト")(par_id3147286.26)

Text refers to text of which a part will be replaced.
文字列 は、その一部が置換されるテキストです。(par_id3149797.27)

Position refers to the position within the text where the replacement will begin.
位置 は、置換を開始するテキスト内の位置を指します。(par_id3166451.28)

Length is the number of characters in Text to be replaced.
長さ は、テキスト 内の置換される文字数です。(par_id3156040.29)

NewText refers to the text which replaces Text.
新しいテキスト は、テキストを置換するテキストを指します。(par_id3159188.30)

Example
(hd_id3146958.31)

=REPLACE("1234567";1;1;"444") returns "444234567". One character at position 1 is replaced by the complete NewText.
=REPLACE("1234567";1;1;"444") は、"444234567" を返します。位置 1 の 1 文字は、完全な新しいテキストに置換されます。(par_id3154096.32)

(/section: replace) (section: rept) (bookmark: bm_id3149741)
REPT function

REPT 関数
(bookmark: bm_id3155582)

REPT
REPT(hd_id3149741.193)

Repeats a character string by the given number of copies.
指定された だけ文字列を繰り返します。(par_id3153748.194)

Syntax
構文(hd_id3152884.195)

REPT("Text"; Number)
REPT("テキスト"; 数値)(par_id3150494.196)

Text is the text to be repeated.
テキスト は、繰り返されるテキストです。(par_id3154859.197)

Number is the number of repetitions.
数値 は、繰り返し回数です。(par_id3150638.198)

The result can be a maximum of 255 characters.
戻り値の長さは最高255文字です。(par_id3149922.212)

Example
(hd_id3156213.199)

=REPT("Good morning";2) returns Good morningGood morning.
=REPT("Good morning";2) は、Good morningGood morning を返します。(par_id3148626.200)

(/section: rept) (section: right) (bookmark: bm_id3149805)
RIGHT function

RIGHT 関数
(bookmark: bm_id3154602)

RIGHT
RIGHT(hd_id3149805.113)

Returns the last character or characters of a text.
テキストの最後の文字 (複数の文字も可) を返します。(par_id3145375.114)

Syntax
構文(hd_id3150837.115)

RIGHT("Text"; Number)
RIGHT("テキスト"; 数値)(par_id3154344.116)

Text is the text of which the right part is to be determined.
テキスト は、右部分が決定されるテキストです。(par_id3149426.117)

Number (optional) is the number of characters from the right part of the text.
数値 (オプション) は、テキストの右部分の文字数です。(par_id3153350.118)

Example
(hd_id3148661.119)

=RIGHT("Sun";2) returns un.
=RIGHT("Sun";2) は、un を返します。(par_id3151132.120)

(/section: right) (section: roman) (bookmark: bm_id3153534)
ROMAN function

ROMAN 関数
(bookmark: bm_id3144755)

ROMAN
ROMAN(hd_id3153534.248)

Converts a number into a Roman numeral. The value range must be between 0 and 3999, the modes can be integers from 0 to 4.
アラビア数字をローマ数字に変換します。変換元の数値は 0 から 3999 までの数値である必要があります。モードには 0 から 4 までの整数を指定できます。(par_id3151256.249)

Syntax
構文(hd_id3149299.250)

ROMAN(Number; Mode)
ROMAN(数値; 書式)(par_id3150593.251)

Number is the number that is to be converted into a Roman numeral.
数値 はローマ数字に変換される数値です。(par_id3156139.252)

Mode (optional) indicates the degree of simplification. The higher the value, the greater is the simplification of the Roman number.
書式 (オプション) は簡略度を示す 1 から 4 の値です。値が大きいほど簡単なローマ数字形式で戻り値が表示されます。(par_id3153318.253)

Example
(hd_id3145306.254)

=ROMAN(999) returns CMXCIX
=ROMAN (999) は、CMXCIX を返します。(par_id3151371.255)

=ROMAN(999;0) returns CMXCIX
=ROMAN(999;0) は、CMXCIX を返します。(par_id3153938.256)

=ROMAN (999;1) returns LMVLIV
=ROMAN (999;1) は、LMVLIV を返します。(par_id3148412.257)

=ROMAN(999;2) returns XMIX
=ROMAN(999;2) は、XMIX を返します。(par_id3155421.258)

=ROMAN(999;3) returns VMIV
=ROMAN(999;3) は、VMIV を返します。(par_id3149235.259)

=ROMAN(999;4) returns IM
=ROMAN(999;4) は、IM を返します。(par_id3150624.260)

(/section: roman) (section: search) (bookmark: bm_id3151005)
SEARCH function

SEARCH 関数
(bookmark: bm_id3149484)

SEARCH
SEARCH(hd_id3151005.122)

Returns the position of a text segment within a character string. You can set the start of the search as an option. The search text can be a number or any sequence of characters. The search is not case-sensitive.
文字列に含まれるテキストの位置を返します。オプションで、検索の開始位置も指定できます。検索するテキストは数字でも文字でもかまいません。検索は大文字と小文字を区別しません。(par_id3148692.123)

(embed text/shared/00/00000001.xhp#regulaer : linkinfo)

The search supports regular expressions. You can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must precede every character with a \ character. You can switch the automatic evaluation of regular expression on and off in (in case of MAC)Office - Preferences(/in case of MAC)(in other case)Tools - Options(/in other case) - Office Calc - Calculate.
検索機能では、正規表現がサポートされています。テキストの入力が終わったらすぐに、たとえば「all.*」と入力してみてください。正規表現そのものを検索したい場合は、各文字の前に「\」を付ける必要があります。ツール → オプション → Office Calc → 計算式 で、正規表現の自動変換のオン/オフを切り替えられます。 (par_id3147418.55)

(/embed text/shared/00/00000001.xhp#regulaer)

Syntax
構文(hd_id3152964.124)

SEARCH("FindText"; "Text"; Position)
SEARCH("検索テキスト"; "テキスト"; 位置)(par_id3154671.125)

FindText is the text to be searched for.
検索テキスト は、検索されるテキストです。(par_id3146080.126)

Text is the text where the search will take place.
テキスト は、検索を実行するテキストです。(par_id3154111.127)

Position (optional) is the position in the text where the search is to start.
位置 (オプション) は、検索を開始するテキスト内の位置です。(par_id3149559.128)

Example
(hd_id3147322.129)

=SEARCH(54;998877665544) returns 10.
=SEARCH(54;998877665544) は、10 を返します。(par_id3154564.130)

(/section: search) (section: substitute) (bookmark: bm_id3154830)
SUBSTITUTE function

SUBSTITUTE 関数
(bookmark: bm_id3147090)

SUBSTITUTE
SUBSTITUTE(hd_id3154830.174)

Substitutes new text for old text in a string.
文字列内の古いテキストを新しいテキストで置換します。(par_id3153698.175)

Syntax
構文(hd_id3150994.176)

SUBSTITUTE("Text"; "SearchText"; "NewText"; Occurrence)
SUBSTITUTE("テキスト"; "検索テキスト"; "新しいテキスト"; 置換対象)(par_id3147582.177)

Text is the text in which text segments are to be exchanged.
テキスト は、テキストセグメントが交換されるテキストです。(par_id3153675.178)

SearchText is the text segment that is to be replaced (a number of times).
検索テキスト は、指定回数、置換されるテキストセグメントです。(par_id3156155.179)

NewText is the text that is to replace the text segment.
新しいテキスト は、テキストセグメントを置換するテキストです。(par_id3145779.180)

Occurrence (optional) indicates which occurrence of the search text is to be replaced. If this parameter is missing the search text is replaced throughout.
置換文字列 (オプション) は、検索テキストが置換される置換対象を示します。このパラメータがない場合は、検索テキストが最初から最後まで置換されます。(par_id3150348.181)

Example
(hd_id3150946.182)

=SUBSTITUTE("123123123";"3";"abc") returns 12abc12abc12abc.
=SUBSTITUTE("123123123";"3";"abc") は、12abc12abc12abc を返します。(par_id3150412.183)

=SUBSTITUTE("123123123";"3";"abc";2) returns 12312abc123.
=SUBSTITUTE("123123123";"3";"abc";2) は、12312abc123 を返します。(par_id3154915.238)

(/section: substitute) (section: t) (bookmark: bm_id3148977)
T function

T 関数
(bookmark: bm_id3156051)

T
T(hd_id3148977.140)

This function returns the target text, or a blank text string if the target is not text.
この関数は、ターゲットテキストを返します。ターゲットがテキストでない場合は、空白の文字列を返します。(par_id3154359.141)

Syntax
構文(hd_id3155858.142)

T(Value)
T(値)(par_id3155871.143)

If Value is a text string or refers to a text string, T returns that text string; otherwise it returns a blank text string.
がテキスト文字列またはテキスト文字列を参照する場合、T はテキスト文字列を返します。そのほかの場合は、空白のテキスト文字列を返します。(par_id3154726.144)

Example
(hd_id3155544.145)

=T(12345) returns an empty string.
=T(12345) は、空の文字列を返します。(par_id3151062.146)

=T("12345") returns the string 12345.
=T("12345") は、文字列 12345 を返します。(par_id4650105.)

(/section: t) (section: text) (bookmark: bm_id3147132)
TEXT function

TEXT 関数
(bookmark: bm_id3156426)

TEXT
TEXT(hd_id3147132.158)

Converts a number into text according to a given format.
指定された書式に従って、数値をテキストに変換します。(par_id3147213.159)

Syntax
構文(hd_id3153129.160)

TEXT(Number; Format)
TEXT(数値; 書式)(par_id3147377.161)

Number is the numerical value to be converted.
数値 は、変換される数字です。(par_id3147389.162)

Format is the text which defines the format. Use decimal and thousands separators according to the language set in the cell format.
書式 は、書式を定義するテキストです。小数位と桁の区切りはセル書式に設定されている言語に従います。(par_id3156167.163)

Example
(hd_id1243629.)

=TEXT(12.34567;"###.##") returns the text 12.35
=TEXT(12.34567;"###.##") は、テキスト 12.35 を返します。(par_id9044770.)

=TEXT(12.34567;"000.00") returns the text 012.35
=TEXT(12.34567;"000.00") は、テキスト 012.35 を返します(par_id3674123.)

(/section: text) (section: trim) (bookmark: bm_id3151039)
TRIM function

TRIM 関数
(bookmark: bm_id3150584)

TRIM
TRIM(hd_id3151039.54)

Removes spaces from a string, leaving only a single space character between words.
文字列の間に空白文字を 1 文字分だけ残し、文字列から空白を削除します。(par_id3157888.55)

Syntax
構文(hd_id3152913.56)

TRIM("Text")
TRIM("テキスト")(par_id3151349.57)

Text refers to text in which spaces are removed.
テキスト は、スペースが削除されるテキストを指します。(par_id3151362.58)

Example
(hd_id3146838.59)

=TRIM("hello") returns hello.
=TRIM("hello") は、hello を返します。(par_id3156074.60)

(/section: trim) (section: unichar) (bookmark: bm_id0907200904004674)
(bookmark: bm_id0907200904030935)
UNICHAR function

UNICHAR 関数

UNICHAR
UNICHAR(hd_id0907200904022525.)

Converts a code number into a Unicode character or letter.
コード番号をユニコードキャラクターか文字に変換します。(par_id0907200904022538.)

Syntax
構文(hd_id0907200904123753.)

UNICHAR(number)
UNICHAR(数値)(par_id0907200904123753.)

Example
(hd_id0907200904123720.)

=UNICHAR(169) returns the Copyright character ©.
=UNICHAR(169) はコピーライト記号である©を返します。(par_id090720090412378.)

(/section: unichar) (section: unicode) (bookmark: bm_id0907200904011330)
(bookmark: bm_id0907200904033543)
UNICODE function

UNICODE 関数

UNICODE
UNICODE(hd_id0907200904022588.)

Returns the numeric code for the first Unicode character in a text string.
文字列の先頭文字のユニコードを返します。(par_id0907200904022594.)

Syntax
構文(hd_id0907200904123874.)

UNICODE("Text")
UNICODE("テキスト")(par_id0907200904123846.)

Example
(hd_id0907200904123899.)

=UNICODE("©") returns the Unicode number 169 for the Copyright character.
=UNICODE("©") はユニコードでコピーライト記号を示す 169 を返します。(par_id0907200904123919.)

(/section: unicode) (section: upper) (bookmark: bm_id3145178)
UPPER function

UPPER 関数
(bookmark: bm_id3145189)

UPPER
UPPER(hd_id3145178.62)

Converts the string specified in the text field to uppercase.
テキスト フィールドに含まれるアルファベット文字を、すべて大文字に変換します。(par_id3162905.63)

Syntax
構文(hd_id3148526.64)

UPPER("Text")
UPPER("テキスト")(par_id3148539.65)

Text refers to the lower case letters you want to convert to upper case.
テキスト は、大文字に変換する小文字を指します。(par_id3148496.66)

Example
(hd_id3148516.67)

=UPPER("Good Morning") returns GOOD MORNING.
=UPPER("Good Morning") は、GOOD MORNING を返します。(par_id3146757.68)

(/section: upper) (section: value) (bookmark: bm_id3150802)
VALUE function

VALUE 関数
(bookmark: bm_id3150814)

VALUE
VALUE(hd_id3150802.185)

Converts a text string into a number.
テキスト文字列を数値に変換します。(par_id3152551.186)

Syntax
構文(hd_id3152568.187)

VALUE("Text")
VALUE("テキスト")(par_id3153638.188)

Text is the text to be converted to a number.
テキスト は、数値に変換されるテキストです。(par_id3153651.189)

Example
(hd_id3144719.190)

=VALUE("4321") returns 4321.
=VALUE("4321") は、4321 を返します。(par_id3144733.191)

(/section: value)

(embed text/scalc/01/04060100.xhp#drking : linkinfo)

Calc functions in the OpenOffice.org Wiki
OpenOffice.org Wiki Calc の関数(par_id0902200809540918.)

(/embed text/scalc/01/04060100.xhp#drking)


< Prev / Next >